package com.situ.mall.shopping.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.situ.mall.shopping.mapper.ShoppingMapper;
import com.situ.mall.shopping.model.ShoppingModel;
import com.situ.mall.shopping.service.IShoppingService;

@Service
public class ShoppingServiceImpl implements IShoppingService{

	@Autowired ShoppingMapper shoppingMapper;
	
	@Override
	public int insert(ShoppingModel model) {
		return shoppingMapper.insert(model);
	}
	
	@Override
	public int delete(ShoppingModel model) {
		return shoppingMapper.delete(model);
	}
	
	@Override
	public int update(ShoppingModel model) {
		return shoppingMapper.update(model);
	}
	
	@Override
	public List<ShoppingModel> selectList(ShoppingModel model){
		return shoppingMapper.selectAll(model);
	}
	
	
	
}
